import java.util.Scanner;

/*
  @author: 13813
  @date: 2024/11/13 18:35
*/
public class Test01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean flag = true;
        String[] arr = new String[3];
        do {
            System.out.println("1.新增2.修改3.删除4.查询5.退出");
            String choice = scanner.nextLine();

            switch (choice) {//姓名 年龄 性别
                case "1":
                    System.out.println("请输入姓名");
                    arr[0] = scanner.nextLine();

                    System.out.println("年龄");
                    arr[1] = scanner.nextLine();

                    System.out.println("性别");
                    arr[2] = scanner.nextLine();
                    break;
                case "2":
//                        System.out.println("修改");
                        /*
                           根据 姓名  修改  年龄
                           请输入要修改的学生的姓名
                         */
                    break;
                case "3":
                    System.out.println("删除");

                    break;
                case "4":
                    for (int i = 0; i < 3; i++) {
                        System.out.println(arr[i]);
                    }
                    break;
                case "5":
                    //改成false
                    flag = false;
                    System.out.println("退出");
                    break;
            }
        } while (flag);


    }
}
